-
Notifications
You must be signed in to change notification settings - Fork 9
feat(phonebook): use modular association groupements #759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #759 +/- ##
==========================================
+ Coverage 85.81% 85.89% +0.08%
==========================================
Files 177 177
Lines 12134 12183 +49
==========================================
+ Hits 10413 10465 +52
+ Misses 1721 1718 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. You should use a dependency instead of is_user_member_of_any_group
| async def get_all_kinds( | ||
| user: models_users.CoreUser = Depends(is_user_an_ecl_member), | ||
| db: AsyncSession = Depends(get_db), | ||
| ): | ||
| """ | ||
| Return all available kinds of from Kinds enum. | ||
| """ | ||
| kinds = await cruds_phonebook.get_all_kinds() | ||
| return schemas_phonebook.KindsReturn(kinds=kinds) | ||
| return await cruds_phonebook.get_all_groupements(db) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider replacing both occurrences of kinds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good
833474f to
df6d05e
Compare
df6d05e to
b3a027c
Compare
45b4497 to
dd3b1a5
Compare
Description
Please explain the changes you made here.
Checklist